-content_for :modal_buttons do
  %input.ui-corner-all.widgetsearch{ :type => 'text', :placeholder => 'Search' }

-content_for :modal_title do
  %h1 Add Person
  %h3 Select a person

%a{ :href => new_flow_person_path(:format => 'json'), :'data-toggle' => 'modal-ajax-listform', :'data-list-target' => '#listPersonList' }
  New

%script{ :type => 'text/html', :data => { :name => '', :username => '' }}
  %li
    %a.btn.referenceItem{:'data-dismiss' => 'modal', :href => '#', :data => { :id => '<%= id %>', :name => '<%= name %>', :username => '<%= username %>' }}
      %i.gcmsicon-gears-black
      %strong <%= name %>
      %span <%= username %>

%ul.nav.nav-tabs.nav-stacked.itemlist.personList#listPersonList{ :'data-list-href' => list_flow_people_path(:format => 'json') }
  -people.each do |person|
    %li
      %a.btn.referenceItem{:'data-dismiss' => 'modal', :href => '#', :data => { :id => person.id, :name => person.name, :username => person.username }}
        %i.gcmsicon-gears-black
        %strong=person.name
        %span=person.username
